KML: Read track name.
geocache_container container:4;
unsigned int diff:6; /* (multiplied by ten internally) */
unsigned int terr:6; /* (likewise) */
+ unsigned int is_archived:1;
+ unsigned int is_available:1;
time_t exported;
time_t last_found;
char *placer; /* Placer name */
for (avp = &attrv[0]; *avp; avp+=2) {
if (strcmp(avp[0], "id") == 0) {
wpt_tmp->gc_data.id = atoi(avp[1]);
+ } else if (strcmp(avp[0], "available") == 0) {
+ if (strcmp(avp[1], "True") == 0) {
+ wpt_tmp->gc_data.is_available = 1;
+ }
+ } else if (strcmp(avp[0], "archived") == 0) {
+ if (strcmp(avp[1], "True") == 0) {
+ wpt_tmp->gc_data.is_archived = 1;
+ }
}
}
}
waypoint *trkpt;
route_head *trk_head = route_head_alloc();
+ if (wpt_tmp->shortname) {
+ trk_head->rte_name = xstrdup(wpt_tmp->shortname);
+ }
track_add_head(trk_head);
while (3 == sscanf(args,"%lf,%lf,%lf %n", &lon, &lat, &alt, &consumed)){